package com.cqz.unit1.t19;

import java.util.Random;

public class MyThread1 extends Thread
{
    @Override
    public void run() {
        long beginTime=System.currentTimeMillis();
        long addResult=0;
        for(int j=0;j<10;j++){
            for(int i=0;i<5000;i++){
                Random random=new Random();
                random.nextInt();
                addResult=addResult+i;
            }
        }
        long endTime=System.currentTimeMillis();
        System.out.println("------"+(endTime-beginTime));
    }
}
